#include "Card.h"

Card::Card(int suit, int rank)
{
	cardSuit = (SUIT)suit;
	cardRank = (RANK)rank;
	mbr_visible = false;
	setPoints();
}

void Card::setPoints()
{
	if(cardRank==JACK || cardRank==QUEEN || cardRank==KING)
		cardPoints=10;
	else if(cardRank==ACE) cardPoints=11;
		else cardPoints = (int)cardRank; // No idea What to do about ACE
}

int Card::getPoints() const
{
	return cardPoints;
}